|
|
|
|
<gglDrive variable>.MoveFile (Function) In french: <Variable gglDrive>.DéplaceFichier
Not available
Moves a file on Google Drive from one directory to another.
oOAuth2Param is OAuth2Parameters
oOAuth2Param.ClientID = "client_id"
oOAuth2Param.ClientSecret = "client_secret"
oOAuth2Param.RedirectionURL = "http://localhost:9000/"
GoogleDrive is gglDrive
GoogleDrive = GglDriveConnect(oOAuth2Param)
arrGglFile is array of GglFile
arrGglFile = DriveListFileGgl(gglMyDrive, "/", frRecursive)
FOR EACH MyFile OF arrGglFile
IF GoogleDrive.MoveFile(MyFile, "/Backups/") = False THEN
Error("Unable to copy file", ErrorInfo())
RETURN
END
END
Syntax
<Result> = <Google Drive>.DriveMoveFile(<File to move> , <Destination directory>)
<Result>: Boolean - True if the file was moved,
- False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Google Drive>: gglDrive variable Name of the gglDrive variable that corresponds to the Google Drive service to be used. The connection to the drive must have been previously established. Otherwise, the element is not moved. <File to move>: GglFile variable Name of the GglFile variable that corresponds to the Google Drive file to manipulate. <Destination directory>: Character string Absolute path of the destination directory. If this parameter does not correspond to a valid path, the element will not be moved. Missing directories in the path are not created. Remarks <Destination directory> parameter Examples of valid paths: "/holidays directory/2021/" "\photos" Examples of invalid paths: "directoryA/DirectoryB" "This/Path/Is/invalid" "c:\Users\"
Related Examples:
|
Unit examples (WINDEV): Drive functions
[ + ] This example illustrates the use of Drive functions (Google Drive, Dropbox, OneDrive).
|
|
Unit examples (WINDEV Mobile): Drive functions
[ + ] This example illustrates the use of Drive functions (Google Drive, Dropbox, OneDrive).
|
Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|